package 框架.ES检索;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

//操作es,框架会自动为接口生成实现类
@Repository
public interface ChargingProgressRepository  extends ElasticsearchRepository<ChargingProgress,Long> {
    //根据温度查询
    //方法名必须findBy属性条件
    List<ChargingProgress> findByTemperatureGreaterThan(Long value);
}
